package com.lemon.reggie.pojo.dto;

import com.lemon.reggie.annotation.NotValue;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DishFlavorDTO implements Serializable {

    private static final long serialVersionUID = 8351740316011087096L;

    @ApiModelProperty(value = "菜品")
    private Long dishId;

    @ApiModelProperty(value = "口味名称")
    @NotBlank(message = "口味名称不能为空！")
    private String name;

    @ApiModelProperty(value = "口味数据list")
    @NotValue(message = "口味数据不能为空!")
    private String value;

}
